/**
 * @author Mirko Bordjoski
 */	
package org.piwik.requests
{
	//import org.piwik.methods.VisitTimeMethods;
	
	public class VisitTime
	{
		
		
		public static const PER_LOCAL_TIME:String = "VisitTime.getVisitInformationPerLocalTime";
		public static const PER_SERVER_TIME:String = "VisitTime.getVisitInformationPerServerTime";
		
		
		public function VisitTime(){}
		
		public static function perLocalTime($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = VisitTime.PER_LOCAL_TIME;//VisitTimeMethods.PER_LOCAL_TIME;
			req.period = $period;
			req.requestType = "perLocalTime";
			
			return req;				
		}
		
		public static function perServerTime($date:String = "yesterday", $period:String = "day", $filterLimit:uint = 100):PiwikRequest
		{			
			var req:PiwikRequest = new PiwikRequest();
			req.date = $date;
			req.filter = $filterLimit;
			req.moduleMethod = VisitTime.PER_SERVER_TIME;//VisitTimeMethods.PER_SERVER_TIME;
			req.period = $period;
			req.requestType = "perServerTime";
			
			return req;				
		}

	}
}